package com.butterfly.hotkey.dashboard.biz.exception;


import com.butterfly.hotkey.common.exception.IException;

/**
 * @author evildog
 * @version 1.0
 */
public enum UserExceptionCode implements IException {

    LOGIN_ERROR(700, "账号或密码错误"),
    USER_NOT_FOUND(701, "账号不存在"),

    ;

    /**
     * 状态码
     */
    private final Integer code;
    /**
     * 信息，前端展示信息
     */
    private final String message;

    UserExceptionCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getMessage() {
        return message;
    }

    public Integer getCode() {
        return code;
    }
}
